

<div id="user_content">
    <table>
        <tr>
            <td><hr><hr>Comment</td>
        </tr>
            <form id="commentForm" action="template/usertemplate/poststatus.php" method="POST" >
        <tr>
            <td><textarea class="user_commentBox" rows="5" cols="90" name="poststatus" > </textarea></td>
        </tr>
            <td><input type="hidden" value="<?php echo $_SESSION['fname']; ?>" name="userfname" ></td>
            <td><input type="hidden" value="<?php echo $_SESSION['lname']; ?>" name="userlname" ></td>
        <tr>
            <td><input type="submit" value="POST"><hr><hr></td>
        </tr>
            </form>
        <tr>
        </tr>
        
        <?php
        
            require_once("classes/getstatus.php");
                
            $status = new User;
            
            $ctr = 0;
            $post_status = $status->getpostStatus();
            
            if($post_status != 0){
                for($x=0;$x<count($post_status);$x++){
                    //echo "<tr>";
                    //echo "<td>".$post_status[$x]['fname'].' '.$post_status[$x]['lname']."</td>";
                    echo "<tr><td>".$post_status[$x]['fname'].' '.$post_status[$x]['lname']."</td></tr>";
                    echo "<tr><td>".$post_status[$x]['status']."</td></tr>";
                    echo "<tr><td>".$post_status[$x]['time']."<br><hr></td></tr>";
                    //echo "</tr>";
                    $ctr+=1;
                }
            }
            
        ?>
    </table>
</div>

<div id="navigation">
        <table>
            <!--<tr>
                <td></td>
            </tr>-->
            <tr>
                
             <b> <a>WELCOME </a>
             <td><?php echo $_SESSION['fname'].' '.$_SESSION['lname']; ?> !!!</td></b>
            </tr>
        </table>
</div>
